package com.zyd.shiro.persistence.beans;

import com.zyd.shiro.business.annotation.FieldValue;
import com.zyd.shiro.business.annotation.TitleValue;
import com.zyd.shiro.business.enums.MenuEnum;
import com.zyd.shiro.framework.object.AbstractDataDO;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author jobob
 * @since 2020-08-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TitleValue(name = "维修",nume = MenuEnum.MODULE,code = "repair")
public class PakRepair extends AbstractDataDO {

    @FieldValue(name = "编号")
    private String unicode;

    @FieldValue(name = "报修日期")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date repairDate;

    @FieldValue(name = "原因")
    private String reason;

    @FieldValue(name = "处理人")
    private Long handler;

    @FieldValue(name = "维修内容")
    private String content;

    @FieldValue(name = "维修金额")
    private Double amt;

    @FieldValue(name = "维修状态")//0维修中 1已完成 2部分完成 3已取消
    private Integer serstatus;

    @FieldValue(name = "审批状态")//0初始状态 1已入库 2待入库
    private Integer appstatus;

    @FieldValue(name = "完成日期")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date finishDate;

    @FieldValue(name = "备注")
    private String remark;

}
